package com.example.design.shejimoshi.action.expression.improve01;

/**
 * @Description TODO
 * @date 2022/11/11 13:46
 * @Author liuzhihui
 * @Version 1.0
 */

public class NumberExpression implements Expression {
    private long number;

    public NumberExpression(long number) {
        this.number = number;
    }

    public NumberExpression(String number) {
        this.number = Long.parseLong(number);
    }

    @Override
    public long interpret() {
        return this.number;
    }
}
